#include "CharacterMgr.h"
#include <iostream>
#include "Report.h"

using namespace std;

int main(){

	CharacterMgr * cmgr= new CharacterMgr(true);
	

	Character* c1 = cmgr->newChr("Tex1");
	Character* c2 = cmgr->newChr("Tex2");
	Character* c3 = cmgr->newChr("Tex3");

	cmgr->delChr(c1);
	//cmgr->delChr(c2);
	//cmgr->delChr(c3);

	Report r = cmgr->GetReport();

	int sizze = sizeof(int);

	cout << "Created Characters: " << r.GetChrCrecont() << endl;
	cout<<"" << endl;
	cout << "Deleted Characters: " << r.GetChrDelcont() << endl;
	cout<<"" << endl;
	cout << "Created Textures: " << r.GetTexCrecont() << endl;
	cout<<"" << endl;
	cout << "Deleted Textures: " << r.GetTexDelcont() << endl;
	cout<<"" << endl;
	vector<string> undeletedTex = r.GetUnDeletedTextures();
	cout<<"Las siguientes texturas no fueron eliminadas: " << endl;
	cout<<"" << endl;
	while(!undeletedTex.empty())
	{
		cout<< undeletedTex.back() << endl;
		undeletedTex.pop_back();
	}
	cout<<"" << endl;
	cout << "Max Memory Used: " << r.GetMaxMemoryUsed() << endl;
	cout<<"" << endl;
	cout<< "Memory leaked: " << r.GetMemoryLeaked() << endl;


	cin.get();
	
	return 0;
}